﻿<local:PageBase x:Class="MicroBlogClient.FriendsStatus"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
        xmlns:local="clr-namespace:MicroBlogClient"
        xmlns:controls="clr-namespace:Rabbit.Controls;assembly=Rabbit.Controls"
      d:DesignHeight="300" d:DesignWidth="300"
	Title="FriendsStatus">
    <local:PageBase.Resources>
        <ResourceDictionary Source="/Resources/StatusTemplate.xaml"/>
    </local:PageBase.Resources>
    
    <Border Style="{DynamicResource MainContentBackground}" Margin="0,0,0,0">
            <TabControl x:Name="tabStatusesContent" BorderThickness="0" SelectionChanged="tabStatusesContent_SelectionChanged">
                <TabItem Header="好友"  Style="{DynamicResource SubHeaderMenuItemStyle}" x:Name="tabItemFriendsStatus">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="20"/>
                    </Grid.RowDefinitions>
                    <ListBox  x:Name="lstFriendsStatusList"
                              ItemsSource="{Binding Path=FriendsStatusCollection}"
                              ItemTemplate="{StaticResource ResourceKey=StatusItemTemplate}" />
                    <local:UCPager x:Name="pager" Grid.Row="1" OnFirstPageClick="pager_OnFirstPageClick"
                           OnPreviousePage="pager_OnPreviousePage"
                           OnNextPageClick="pager_OnNextPageClick"/>
                </Grid>
                </TabItem>
                <TabItem Header="最新"  Style="{DynamicResource SubHeaderMenuItemStyle}">
                    <ListBox  x:Name="lstPublicStatusList"
                              ItemsSource="{Binding Path=PublicStatusCollection}"
                              ItemTemplate="{StaticResource ResourceKey=StatusItemTemplate}" 
                             />
                </TabItem>
            </TabControl>
    </Border>
</local:PageBase>
